package engine.newUi 
{
	import engine.control.TurnPapersViewGroup;
	import engine.data.ResPath;
	import engine.flag.GameDefine;
	import engine.net.messages.CustomToServerFlag;
	import engine.net.mgr.SystemSender;
	import engine.ui.MainUIManager;
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	
	import newx.StageInfo;
	import newx.com.config.StaticIni;
	import newx.com.control.NxClip;
	import newx.com.control.button.NxButton;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.text.NxLabel;
	import newx.com.control.window.NxWindowEvent;
	
	/**
	 * ...
	 * @author WangHaiBo  www.woniu.com
	 * 副本
	 */
	public class DuplicatesUI extends BaseUI 
	{
		public var backPic			:NxClip;
		public var iconPic			:NxClip;
		public var namePic			:NxClip;
		public var chapterPic		:NxClip;
		
		public var equipInfo		:NxLabel;
		
		public var itemGroup		:NxViewGroup;
		
		public var preBtn			:NxButton;
		public var nxtBtn			:NxButton;
		public var back_1			:MovieClip;
		public var back_2			:MovieClip;
		public var intoEffect		:MovieClip;
		public var collEffect		:MovieClip;
		
		//绿线 ---YCG
		public var greenLine:NxClip; 
		//艺术字
		public var fb_down:MovieClip;
		
		private static var 	_self	:DuplicatesUI;
		
		private var 		_myLogic:DuplicatesLogic;
		
		public function DuplicatesUI()
		{
			
		}
		public static function getInstance():DuplicatesUI
		{
			if (_self == null)
			{
				_self = new DuplicatesUI();
			}
			return _self;
		}
		
		override public function Init():void 
		{
			_myLogic	=	DuplicatesLogic.getInstance();
		}
		
		override protected function AfterHide():void
		{
			_myLogic.removeListener();
			chapterPic.source = "";
		}
		
		override protected function BeforeShow():void
		{
			_myLogic.addListener();
			MainUIManager.getInstance().autoFoundWay	=	false;
			greenLine.source = ResPath.PNG+"FBline.png";
		}
	}
}